import { MmHttpResponse } from '@/types/http';

// 登录数据模型
export interface MarssLoginModel {
  username: string;
  password: string;
}

// 登录成功后，服务器端返回的 UserModel 信息
export interface MarssUserModel {
  userId: number;
  userName: string;
  fullName: string;
  organId: number;
  organName: string;
  roles: string[];
  permissions: string[];
}

// 登录后的响应结果数据
export interface MarssLoginRes extends MmHttpResponse<MarssUserModel> {
  token: string;
}
